package com.zmn.oms.persistence.interfaces.conf.attachment;


import com.zmn.oms.model.entity.conf.attachment.ConfOrderAttachment;
import com.zmn.oms.model.entity.conf.attachment.ConfOrderAttachmentQuery;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ConfOrderAttachmentDao {

    List<ConfOrderAttachment> listByQuery(ConfOrderAttachmentQuery query);

    List<ConfOrderAttachment> listPictureByQuery(ConfOrderAttachmentQuery query);

    List<ConfOrderAttachment> listByChannelIdsOrServCategIds(ConfOrderAttachmentQuery query);

    List<ConfOrderAttachment> listPageByQuery(ConfOrderAttachmentQuery query);


    List<ConfOrderAttachment> listPicturePageByQuery(ConfOrderAttachmentQuery query);


    int countByQuery(ConfOrderAttachmentQuery query);


    Integer countPictureByQuery(ConfOrderAttachmentQuery query);

    int insert(ConfOrderAttachment record);

    int insertSelective(ConfOrderAttachment record);

    ConfOrderAttachment selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(ConfOrderAttachment record);

    int updateByPrimaryKey(ConfOrderAttachment record);

    int deleteByPrimaryKey(Integer id);


}